package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.domain.CarDictType;

import java.util.List;

@Mapper
public interface CarDictTypeMapper {

    List<CarDictType> list(CarDictType carDictType);

    boolean add(CarDictType carDictType);

    boolean update(CarDictType carDictType);

    boolean delete(Integer dictId);

    List<CarDictType> listAll();

    void insertBach(List<CarDictType> cacheList);


    List<CarDictType> selectTypeById(Integer dictId);

    List<CarDictType> selectTypeByType(String dictType);
}
